import axios from "@/http/http.js";
// 封装添加评价接口
export const addEvaluateAPI = (data) => {
    return axios({
        url: '/evaluate/addEvaluate',
        method: 'post',
        data
    })
};

// 封装获取评价接口
export const findEvaluateAPI = (data) => {
    return axios({
        url: '/evaluate/findEvaluate',
        method: 'post',
        data
    })
};

// 封装删除评价接口
export const deleteEvaluateRecordAPI = (data) => {
    return axios({
        url: '/evaluate/deleteEvaluate',
        method: 'put',
        data
    })
};

// 封装获取所有患者评价接口
export const evaluationsFindAPI = (data) => {
    return axios({
        url: '/evaluate/findEvaluations',
        method: 'post',
        data
    })
};

// 封装计算患者评价接口
export const evaluationComputeAPI = (data) => {
    return axios({
        url: '/evaluate/computeEvaluation',
        method: 'post',
        data
    })
};